// To parse this JSON data, do
//
//     final CooperationAddressMo = CooperationAddressMoFromMap(jsonString);

import 'dart:convert';

class CooperationAddressIemMo {
  CooperationAddressIemMo({
    this.id,
    this.provinceId,
    this.name,
    this.parentId,
    this.shortName,
    this.cityCode,
    this.zipCode,
    this.mergerName,
    this.pinyin,
  });

  int? id;
  int? provinceId;
  String? name;
  int? parentId;
  String? shortName;
  dynamic cityCode;
  dynamic zipCode;
  String? mergerName;
  String? pinyin;

  factory CooperationAddressIemMo.fromJson(String str) =>
      CooperationAddressIemMo.fromMap(json.decode(str));

  String toJson() => json.encode(toMap());

  factory CooperationAddressIemMo.fromMap(Map<String, dynamic> json) =>
      CooperationAddressIemMo(
        id: json["id"],
        provinceId: json["provinceId"],
        name: json["name"],
        parentId: json["parentId"],
        shortName: json["shortName"],
        cityCode: json["cityCode"],
        zipCode: json["zipCode"],
        mergerName: json["mergerName"],
        pinyin: json["pinyin"],
      );

  Map<String, dynamic> toMap() => {
        "id": id,
        "provinceId": provinceId,
        "name": name,
        "parentId": parentId,
        "shortName": shortName,
        "cityCode": cityCode,
        "zipCode": zipCode,
        "mergerName": mergerName,
        "pinyin": pinyin,
      };
}
